let init = {
  num: 100,
  name: 'mal'
}

export default function personalReducer(state = init, action) {
  state = { ...state }
  switch (action.type) {
    case 'PERSIONAL_NAME':
      state.name = action.payload || state.name;
      break;
    default:
  }

  return state
}